namespace Vwf.Tools {
	public class Html : Object {
		public static string EncodeHtml(string str, bool encodeParam) {
			str = str.replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;");
			if (encodeParam) {
				str = str.replace("\"", "&quot;").replace("'", "&apos;").replace("\n", "&#13;").replace("\r", "&#10;").replace("\t", "&#9;");
			}
			return str;
		}
	}
}
